/*
 * @Date: 2023-02-27 14:15:31
 * @LastEditTime: 2023-02-27 14:19:18
 * @FilePath: /hash-guess-game/src/api/module/cube.ts
 * 介绍:
 */
import { defaHttp, ApiRes, ApiReturn } from "../index";

/**俱乐部页面信息 */
export async function apiClubInfo(): ApiReturn<ClubInfo.Res> {
  const res = await defaHttp.post<ApiRes<ClubInfo.Res>>("/user/team");
  if (res.code !== 200) return;
  return res.data;
}
/**俱乐部页面信息 */
export namespace ClubInfo {
  export interface Res {
    total: number;
    reward: number;
  }
}
